package com.itheima.d2_static_method;

public class Student {
    double score;


    //类方法
    public static void study() {
        System.out.println("同学们在认真的学习Java");
    }


    public static void printHelloWorld() {
        System.out.println("Hello World");
        System.out.println("Hello World");
    }

    // 实例方法（对象的方法）
    public void eat() {
        System.out.println("同学在吃饭");
    }

    public void printPass() {
        System.out.println("成绩：" +
                (score >= 60 ? "及格" : "不及格"));
    }
}
